//
//  HJDInterTableViewCell.m
//  常州红房子
//
//  Created by 胡金东 on 16/7/26.
//  Copyright © 2016年 胡金东. All rights reserved.
//

#import "HJDInterTableViewCell.h"

@implementation HJDInterTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.title = [[UILabel alloc]initWithFrame:CGRectZero];
        self.title.font = [UIFont systemFontOfSize:19];
        self.title.textColor = [UIColor getColorWithHexNumber:@"323232"];
        [self addSubview:self.title];
        
        self.imgView = [[UIImageView alloc]initWithFrame:CGRectZero];
        [self addSubview:self.imgView];
        
        self.sumLbl = [[UILabel alloc]initWithFrame:CGRectZero];
        self.sumLbl.font = [UIFont systemFontOfSize:15];
        self.sumLbl.textColor = [UIColor getColorWithHexNumber:@"FF9BAA"];
        [self addSubview:self.sumLbl];
        
        self.iconImage = [[UIImageView alloc]initWithFrame:CGRectZero];
//        self.iconImage.backgroundColor = [UIColor redColor];
        [self addSubview:self.iconImage];
        
      
        
    }
    return self;
}

-(void)layoutSubviews
{
    self.title.frame = CGRectMake(13, 10, 120, 30);
    CGFloat imgX = (HJDWidth -13)/2;
    self.imgView.frame = CGRectMake(imgX, 15, 13, 17.5);
    CGFloat sumX = CGRectGetMaxX(self.imgView.frame)+5;
    self.sumLbl.frame = CGRectMake(sumX, 15, 40, 17.5);
    self.iconImage.frame = CGRectMake(HJDWidth-25, 19, 8, 14);
}



@end
